﻿<div id="head">
    <ul id="navi">
        <li tag="person">Person</li>
        <li tag="book">Book</li>
        <li tag="chat">Chat</li>
    </ul>
</div>
<div class="clear"></div>
<script>
    document.getElementById("navi").addEventListener("click", function (e) {
        var _tag = e.target.getAttribute("tag");
        if (_tag == "person") {
            _controller.doAction({ action: 'GetPersonList' });
        }
        if (_tag == "book") {
            _controller.doAction({ action: 'GetBookList' });
        }
        if (_tag == "chat") {
            _controller.doAction({ action: 'Chat' });
        }
    }, false);


</script>
